package com.zx.oa.service.weekResult;

import com.zx.oa.dao.weekResult.WeekResultDao;
import com.zx.oa.dao.weekResult.WeekResultDaoImpl;
import com.zx.oa.entity.WeekResult;
import com.zx.oa.service.weekResult.WeekResultService;

import java.util.List;

public class WeekResultServiceImpl implements WeekResultService {
    WeekResultDao weekResultDao = new WeekResultDaoImpl();
    @Override
    public List<WeekResult> checkWeekResult(String major,String className,String name,String date,String result,int currentPageNo,int pageIndex) {

        return weekResultDao.checkWeekResult(major,className,name,date,result,currentPageNo, pageIndex);
    }

    @Override
    public int getTotalCount(String major, String className, String name, String date, String result) {
        return weekResultDao.getTotalCount(major,className,name,date,result);
    }

    //修改周考成绩
    @Override
    public boolean modifyWeekResult(String date, String result, String stuId) {
        return weekResultDao.modifyWeekResult(date,result,stuId);
    }
}
